package com.bawei.module_player

import androidx.lifecycle.LiveData
import com.bawei.library_common.mvvm.BaseRepository
import com.bawei.library_network.newFactory.ApiResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/12 10:04
 * @Description : PlayerRespository
 */
class PlayerRepository:BaseRepository(){

    suspend fun video(videoId:Int): PlayerEntity{
        return createCoroutineApiService(PlayerService::class.java).video(videoId)
    }

    suspend fun comment( videoId:Int):PlayerEntity{
        return createCoroutineApiService(PlayerService::class.java).comment(videoId)
    }

}